import request from '@/router/axios';

export const getEmsExpressByProjectNo = (projectNo) => {
  return request({
    url: '/api/vingsoft-acceptance/emsexpress/getEmsExpressByProjectNo',
    method: 'get',
    params: {
      projectNo
    }
  })
};


export const saveEmsStatus = (projectNo) => {
  return request({
    url: '/api/vingsoft-acceptance/emsexpress/saveEmsStatus',
    method: 'get',
    params: {
      projectNo
    }
  })
};

export const getEmsList = (current, size, params) => {
  return request({
    url: '/api/vingsoft-acceptance/caseInfo/emsPage',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
};

export const getEmsExpressList = (projectNo) => {
    return request({
        url: '/api/vingsoft-acceptance/emsexpress/getEmsExpressList',
        method: 'get',
        params: {
            projectNo
        }
    })
};

export const detail = (projectNo, logisticType) => {
    return request({
        url: '/api/vingsoft-acceptance/emsexpress/detail',
        method: 'get',
        params: {
            projectNo,
            logisticType
        }
    })
};
